package com.kpmg.datalake.autopackage.service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;
import com.kpmg.datalake.autopackage.vo.ExcelVo;
import com.kpmg.datalake.autopackage.vo.SourceDataManagerDTO;
import com.kpmg.datalake.common.exception.CustomException;
import com.kpmg.datalake.common.vo.ServerResponse;
import com.kpmg.datalake.db.model.Project;
import com.kpmg.datalake.db.model.SysUsr;

/**
 * Excel管理模块
 * 
 * @author James
 */
public interface ExcelService {


  /**
   *
   * @param user
   * @param projectId
   * @param file
   * @param fileName
   * @param flag
   * @return
   * @throws IOException
   */
  public Map<String, Object> excelAnalyseXlsx(SysUsr user, String projectId, File file,
      String fileName, int flag) throws IOException;


  /**
   * 新增
   * 
   * @param user
   * @param newExc
   * @param personalPath
   * @param project
   * @throws InterruptedException
   * @throws FileNotFoundException
   * @throws CustomException
   */
  public void insertClientManage(SysUsr user, ExcelVo newExc, String personalPath, Project project)
      throws InterruptedException, FileNotFoundException;



  /**
   * 查询源数据信息
   * 
   * @param sourceDataManagerDto
   * @return
   */
  public ServerResponse getSourceDataList(SourceDataManagerDTO sourceDataManagerDto);


}
